home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Linux
/
Complete Linux.iso
/
docs
/
system
/
mail
/
transpor
/
ifmail23.z
/
ifmail23
/
ifmail
/
iflib
/
rename.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1994-04-04
|
172 b
|
13 lines
#include <sys/types.h>
#include <unistd.h>
int rename(old,new)
char *old,*new;
{
register int rc;
if ((rc=link(old,new)) == 0)
return unlink(old);
else return rc;
}